package com.lujieni.springbootlearn;

import com.lujieni.springbootlearn.beanFactoryPostProcessor.MyApplicationContextInitializer;
import lujieni.starter.annotation.EnableLujieniStarter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@EnableAsync
@EnableLujieniStarter
public class SpringbootLearnApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SpringbootLearnApplication.class);
        springApplication.addInitializers(new MyApplicationContextInitializer());
        springApplication.run();
    }

}
